package de.urlaub.server.data;

import java.util.ArrayList;

import javax.ejb.Local;

@Local
public interface VacationDao {	
	// Employee
	public void persistEmployee(Employee employee);
	public ArrayList<Employee> getEmployees();
	public void updateEmployee(Employee employee);
	
	// VacationEntitlement
	public void persistEntitlement(VacationEntitlement vacationEntitlement);
	public ArrayList<VacationEntitlement> getEntitlementsByEmployeeId(int employeeId);
	public void updateEntitlement(VacationEntitlement vacationEntitlement);

	// Division
	public void persistDivision(Division division);
	public Division getDivisionById(int divisionId);
	
	// Vacation
	public void persistVacation(Vacation vacation);
	public ArrayList<Vacation> getVacationsWithState();
	public ArrayList<Vacation> getVacationsWithEmployeeAndState();
	public void updateVacation(Vacation vacation);
}
